package com.Nuyoah.demo01.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("communities")
public class Community {
    @TableId
    private Integer communityId;
    private String communityName;
    private String creatorId;
    @TableField(exist = false)
    private String creatorName; // 数据库中不存在的字段
    private String createdAt;
    private String isDeleted;
}